<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" pageEncoding="UTF-8"%>
<html>
<head>

	<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">

	<title>Home</title>
	
	<script type="text/javascript" src="resources/js/jquery.min.js"></script>
	
	<script>

		$(document).ready(function () { 
			setInterval("startRequest()",1000);
		}); 
		function startRequest() {
			htmlobj=$.ajax({url:"sendRequest",async:false});
			$("#myDiv").html(htmlobj.responseText);
		}

	</script>
	
</head>
<body>
<h1>
	Hello world!  
</h1>

	<table>
		<tr>
			<td>The time on the server is </td>
			<td><div id="myDiv">${serverTime}</div></td>
		</tr>
	</table>
	
</body>
</html>
